<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/view/main/stylesheet.jsp"%>
<script src="${baseurl}/styles/frameword/ckeditor/ckeditor.js"
	type="text/javascript" charset="utf-8"></script>
<script src="${baseurl}/styles/frameword/js/jquery.validate.min.js"
	type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css"
	href="${baseurl}/styles/frameword/css/add.css" />
<script src="${baseurl}/styles/frameword/js/validate.js"
	type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$(function() {
		CKEDITOR.replace('content');
		$("#close-button").click(function() {
			var index = parent.layer.getFrameIndex(window.name);
			parent.layer.close(index);
		});
		var url = "/pro-web-advertising-carrier/";
		var rules = {
			name : {
				required : true
			},
		};
		validate("form1", rules, call);
		function call(param, form) {
			form.submit();
		}
	})

	function isWysiwygareaAvailable() {
		if (CKEDITOR.revision == ('%RE' + 'V%')) {
			return true;
		}
		return !!CKEDITOR.plugins.get('wysiwygarea');
	}
</script>
</head>
<body>
	<form class="bs-example bs-example-form" method="post"
		action="${baseurl}/pro-web-advertising-carrier/add" role="form"
		id="form1">
		<table class="table noline">
			<tbody>
				<tr>
					<td style="width: 500px !important;" rowspan="4"><textarea
							style="width: 0; height: 0;" name="content" id="content"></textarea></td>
					<td height="50px"><div class="input-group">
							<span class="input-group-addon explain">网页名称</span> <input
								type="text" name="name" class="form-control">
						</div></td>
				</tr>
				<tr>
					<td height="50px">
						<div class="input-group">
							<span class="input-group-addon explain">网页类型</span>
							<wb:html wbCode="sys-carrier-type" name="type" nullvalue="false"
								type="select" />
						</div>
					</td>
				</tr>
				<tr>
					<td height="50px">
						<div class="btn-group" style="float: right;">
							<button type="submit" class="btn btn-success">
								<i class="glyphicon glyphicon-ok"></i> 添加
							</button>
						</div>
					</td>
				</tr>
				<tr>
					<td></td>
				</tr>
			</tbody>
		</table>

	</form>
</body>
</html>